-
-
Notifications
You must be signed in to change notification settings - Fork 392
fix: unfreeze DependencyFactory
after command
#1528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 3.9.x
Are you sure you want to change the base?
fix: unfreeze DependencyFactory
after command
#1528
Conversation
e4ec2f3
to
458c7bf
Compare
DependencyFactory
after command
dd3e71d
to
83a2951
Compare
83a2951
to
f7f8e8c
Compare
I fixed phpstan failures, which are due to a new phpstan version |
It seems there are CI jobs failing. Please take a look at this guide for more on how to handle those. Specifically this part |
63abad1
to
d717a90
Compare
cs fixed 👍 |
@goetas @VincentLanglet please review |
} | ||
} | ||
|
||
abstract protected function doExecute(InputInterface $input, OutputInterface $output): int; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Introducing a new abstract function (to a class that is not internal) is a BC break, isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah you're right, I acted as this class was internal.
that's strange that roave-backward-compatibility-check
workflow did not see it
I've made the method concrete, and it now directly throws an exception. I think this is not a BC anymore
d717a90
to
5f7cb42
Compare
Summary
When a migration command runs, the
DependencyFactory
is frozen, but never "unfrozen", so it cannot be run several times programmatically, like we would need in Foundry.I propose to unfreeze at the end of all commands, but I'd be also OK to only do it in
doctrine:migration:migrate